home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 22 / PCPP #22.iso / Quake2 / q2source_12_11 / utils3 / qe4 / camera.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-05  |  751 b   |  43 lines

  1.  
  2. // window system independent camera view code
  3.  
  4. typedef enum
  5. {
  6.     cd_wire,
  7.     cd_solid,
  8.     cd_texture,
  9.     cd_blend
  10. } camera_draw_mode;
  11.  
  12. typedef struct
  13. {
  14.     int        width, height;
  15.  
  16.     qboolean    timing;
  17.  
  18.     vec3_t    origin;
  19.     vec3_t    angles;
  20.  
  21.     camera_draw_mode    draw_mode;
  22.  
  23.     vec3_t    color;            // background 
  24.  
  25.     vec3_t    forward, right, up;    // move matrix
  26.  
  27.     vec3_t    vup, vpn, vright;    // view matrix
  28. } camera_t;
  29.  
  30. extern    camera_t    camera;
  31.  
  32. void Cam_Init ();
  33. void Cam_KeyDown (int key);
  34. void Cam_MouseDown (int x, int y, int buttons);
  35. void Cam_MouseUp (int x, int y, int buttons);
  36. void Cam_MouseMoved (int x, int y, int buttons);
  37. void Cam_MouseControl (float dtime);
  38. void Cam_Draw ();
  39.  
  40. void Cam_HomeView ();
  41. void Cam_ChangeFloor (qboolean up);
  42.  
  43.